/*
 * @Author: your name
 * @Date: 2020-08-02 14:09:07
 * @LastEditTime: 2020-09-13 16:49:47
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \project\羊绒产业园\源码\src\main.js
 */
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import { Swipe, SwipeItem,ActionSheet,AddressList,AddressEdit,Rate     } from 'vant';
import store from './store';
import axios from 'axios';
import Vant from 'vant';
import 'vant/lib/index.css';
import './style/reset.scss';
import './style/common.scss';
import './style/method.scss';

import App from './App';
import router from './router';
import Mock from "mockjs";
import http from './js/http/http.js';
import form from './js/common/form.js';
import code from './js/common/code.js';

Vue.config.productionTip = false
Vue.use(Vant);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(ActionSheet);
Vue.use(AddressList);//地址列表
Vue.use(AddressEdit);//编辑地址
Vue.use(Rate);//评分
 

//图片预览地址
Vue.prototype.$imgUrl = 'http://yijia.dadoyi.com';

Vue.prototype.$ajax = http;
Vue.prototype.$baseUrl = process.env.API_ROOT;
Vue.prototype.$store = store;
Vue.prototype.$form = form;
Vue.prototype.$code = code;

axios.defaults.withCredentials = true;

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    components: { App },
    template: '<App/>'
})